<?php
if ( IPB_THIS_SCRIPT != 'admin' )
{
	print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded 'init.php'.";
	exit();
}

class run_upgrade
{
	var $ipsclass;
	var $version_id;
	var $version_name;
	
	function auto_run()
	{
		if($this->ipsclass->market_class->count_plugin_filename("scratchcard.php"))
		{
			$this->ipsclass->DB->sql_add_field("market_scratchcard_ticket", "ip_address", "varchar(15) NOT NULL" ,"''");
		}
	}
}
?>